Tidying up
Fixed response parsing.
Added a convenience method to create a database if it doesn't exist, or return a connection to an already-existing database.
The 'addView' method now supports 'reduce' functions, and now doesn't overwrite all the existing views.