Implemented (semi) resful controller, angularJS controller and services