Added Role model. User model updated such that roles is a list of Role model references rather than an array of strings
When user account is created, if there are no other users, user is given admin role. Otherwise, user is given the 'authenticated' role. Moved logic to get basic permissions to separate function.
Implementing bootstrapRoles function to bootstrap.js - should create admin and authenticated roles if they don't exist in db
bootstrap: finished implementation of roles bootstrapping. eliminated code duplication
permissionsManager: moved grantBasicPermissions from users controller. added getAllFieldPermissions method
When user logs in, roles property is populated.
Updated permissions manager to be able to check permissions in user's roles as well as user's permissions
Roles field is populated when user is deserialized
Added documentation to permissionManager methods
Added permissionManager method to grant all CRUD permissions. Bootstrap for admin role uses said method
Merge branch 'roles' into dev