added serve function using ionic, more flexable server than cordova or phonegap in our non-standard flow