Error handling, api context storing and directive for fragments

Using $q.reject on error