Added binary (DER) form of X.509 example cert
Added more standard options to view query REST API

It wasn't passing some options to the view server, such as include_docs,
descending, etc.
When include_docs is specified, need to remove the _sync property from
the doc bodies included in the response.
Also added a unit test for view queries.
Fixes #448