Merge pull request #1 from hannesgassert/master

Fix: previous version was trying to overwrite _id through update, switch to _id = connect session id.
inc version, remove unused function
Honor expiration time in cookie, if any