PouchDB updates

Added new API calls for type() and close().
Added new PouchBulkDocsRequest interface.
Fixed up argument types.