node.js permissions module for managing user's access to resources