Added persistent sessions with fast resume; closes #2