initial support for get/head database in rest_couch

does not yet understand vbucket ids or bucket_uuids
cbugg: bug-446