AngularJS factory for restful, with methods default [get, query, create, update, destroy] and with associations.