Simple API server / client using Slim Framework and Angularjs