http://blog.nitrous.io/2014/01/02/build-a-mobile-app-with-ionic-framework-firebase-and-phonegap-build.html