Experimenting with RESTful servers and angular.js