Optional session persistence

* Added support for optional session persistence (see config:
session.persist)
* Fixed impress.saveSession and impress.restoreSession