fixed reference to PORTAL_LOADED define in portal class
fixed references to engine::get() in portal class
removed debug() and Error() from portal class