Permissions

Adds `permissionsPlugin` with 2 functions:
 * `getPermissions(callback)`: returns an array with all permissions
 * `hasPermissions(userId, action, target, callback)`: returns true iff the specified userId has the permission to execute the specified action on th specified target.