another doc batch
start to add doc and create common types.
add copy_doc function.
add all_dbs function + fossibility to fold dbs infos.
add support for attachments.
add reduce tests + fixes
add view tests and fix view result.
add all doc tests. while i'm here, fix it.
bulk docs tests
test doc create/open/delete
start to add tests
add functions all and fold to query views and all docs.
add save_docs and delete_docs functions (bulk_doc api).
add more db functions:
- db_set_security / db_get_security
- db_set_revs_limit / db_get_revs_limit
- compact (db and view)
allows deletion form docid and docrev only.
Since the db record is based on a snapshots, I was unable to save and
get doc with previous code. The db_exec function solve that.