changed permission name and user role key rows to varchar 32, fixed rebuildRoleCache not working when a role ID is passed
Added ac_define_constants() function and a few minor fixes