Entity relationship, role, and permissions API for Node.js