provides a template architecture for an SPA app, to be used as web app or phonegap app.