Main ui

@liorhar 

sorry for the delay - forgot to press the "Create pull request" button :)
It's best practice to move all $http request to a service and inject it.
it makes testing allot more easy