Factored out couchdb queries into own class.

Added manifest registration with couchdb.

Code in 'just make it work' stage.
Factored out couchdb queries into own class.

Added manifest registration with couchdb.

Code in 'just make it work' stage.
Merge branch 'dev' of ssh://source.bionimbus.org/home/git/osdcquery into dev