added "allowed" method to core
added supermodlr exception
added get_user methods to the framework classes
changed all internal queries to use core::query method instead of using primary db directly