/** @return The object that takes care of authentication and authorization
	*/
	function getSecurityManager() {
		if (!isSet($this->securityManager)) {
			$this->useClass('SecurityManager', $this->getDir());
			$this->securityManager = new SecurityManager($this->getBaseUrl(), $this->tokenSalt);
		}
		return $this->securityManager;
	}