API for phonegap app using Slim Framework