Remove fixed limit of results returned by secondary index query

The global query limit capability can be set to any value in the
project settings, however in the query implementation the limit
is hard coded to 1000.

Remove the hard-coded limit so that the limit specified in the
global capability is honoured.

Bug: Issue 2879
Change-Id: I9974f43da7cf9902b7e46607d44abc7383f77ecd
Don't require secondary index when running daemon in slave mode

Add a dummy index implementation and install it when the daemon is
started in slave mode.

Make the reindex program exit with an error if run on a server that
is configured to run in slave mode.

Disable the query ssh command when in slave mode.

Change-Id: Ia323d7dfc3b8f333857ba310072e41943878c11b