public function init()
{
$this->_helper->contextSwitch->addActionContext('generate-username', 'json')->addActionContext('check-username', 'json')->addActionContext('check-email', 'json')->addActionContext('pending', 'json')->addActionContext('create-user', 'json')->initContext();
$this->auth = Zend_Auth::getInstance();
}