2517 open revs=all function clause

This is a replacement PR for https://github.com/apache/couchdb-chttpd/pull/14