This commit refactors most of the code in `cmd/pilosa` to `pilosa.Server` so that it can be reused in long running cluster testing.