public function initialize ($routepath)
    {
        // Set path
        $this->routepath = $routepath;

        // Add templates
        Template::addPath (__DIR__ . '/templates/', 'CatLab/Accounts/');

        // Add locales
        Text::getInstance ()->addPath ('catlab.accounts', __DIR__ . '/locales/');

        // Set session variable
        Application::getInstance ()->on ('dispatch:before', array ($this, 'setRequestUser'));

        // Set the global user mapper, unless one is set already
        Application::getInstance ()->on ('dispatch:first', array ($this, 'setUserMapper'));

        // Add helper methods
        $helper = new LoginForm ($this);

        Template::addHelper ('CatLab.Accounts.LoginForm', $helper);
    }