Moved the static data to a factory

Ok I moved the static data to a factory call.

The actual implementation should be using $http.

I couldn't quite figure out how to return the correct data because of angular+promises are a bit more confusing than I thought (and well I know nothing about jasmine).

Feel free to edit and rename stuff too.

Mocked the call to the factory.