As we decided to remove Zend_Session due to locking issues, we have to implement our session handling here. This is the basic, untested code which will be tested in the next step refs #4265