Added cookie-based login session support

The CouchDB /_session API now works, as an alternative to using
basic auth.
Fix: Default channelmap wasn't being used if no custom one provided

If there was no _design/channels document, the server would end up
installing a no-op channelmap function instead of using the default
algorithm (checking the .channels property). Fixed.
Fixes #9.