Refactor: Database: Clean up connection code

Make the code that establishes a connection
with the Couch server a little more clear.
Refactor: Wrap around nano, cookies, keep-alive

The code for managing cookies and a persistant
connection with the database server wanted to
be in its own file, named "nanoo" for now.