Moved all http requests to controllers and directives. fixes #603.