add lib/permissions.js, plugins/permissions.js and hook it into variables and builtins(plugin commands)