Unit tests now use "basecouch-tests" bucket.

That way they don't mess up data in the default "basecouch" bucket.
This does mean you'll need to create the new bucket or the tests will
fail!
Make login sessions persistent

Sessions are now stored as Couchbase documents, not in an in-memory map.