Add mock auth response. And mock user factory
Merge pull request #1 from cheung31/mock

Add mock auth response. And mock user factory
Make tests pass and add Makefile
auth-api handlers errors and base64 encodes articleIds
test auth-plugin
Start permissions with test
Add fixture and fixtures to karma
Add text to requirejs
Make permissions tests use mocked api. auth-api is adjusted to make that possible. Add permissions.forCollection passes back CollectionAuthorization object
Add test for fetch-user
Move fetch-user to a method on new user-service
Add permissions module, and let User.isMod work for Collections, Networks
Add Site Authorizations
Move authorization adding from userService to authApi.updateUser. It updates authorizations and profile info now, and get rid of legacy modMap and keys attributes
Update docs
Add permissions to README
Merge pull request #2 from gobengo/permissions

Permissions
Handle case where auth api returns empty obj response, like if you're logged out
Pass err to authenticate