Adds hooks for repository objects.
Merge branch 'master' of github.com:OT-SIMS-2013/server
Cleans the api.php file and moves code inside a custom server class.
Merge branch 'master' of github.com:OT-SIMS-2013/server