2517 open revs=all function clause

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