I think Right Thing (tm) should create your one-page application so that it uses the RESTful API, which is publicly available. In other words, think of it as if you were publishing your API for the world and making changes backwards compatible with them. I think that it is not as difficult as it might seem, and will leave you with a cleaner system. Of course, better than building a complex version and live plugins!
source share