Moved API functions

Removed API functions from MainController.js to a new Request.js obj