Add _local_docs and _design_docs handlers

COUCHDB-1145
db_req for _all_docs, _local_docs and _design_docs are too similar. Can they base on the same code?