changed registration redirect to same method as login redirect
removed Session::load and moved some contents to Session::createInstance
changed autoloader to use a static class