Major changes. Upgraded phonegap and implemented tickets