rebar.config: make it easier to add repository

Similar change exists in the bigcouch branch, except we continue to use
a rebar.config file.
support validate_doc_read feature.
fix tests: update db header