Start on a sample queries doc.
Use shards map instead of looping
Wire up /db/:db/shards
Wire up /db/:db/retention_policies
Fix CreateShardIfNotExists and spelling error
Make unit tests more self contained
Use append instead of index
Rename TestHTTPServer to HTTPServer
Wire up POST /db/:db/retention_polocies
Wire up DELETE /db/:db/retention_policies/:name
Wire up POST /db/:db/retention_policies/:name
Wire up /db/:db/retention_policies/:name/shards
go fmt handler_test.go
Add test for /ping
Add more handler_test.go tests
Make var names consistent for RetentionPolicy
Wire up POST /db/:db/users
Wire up GET /db/:db/users/:user and use Matcher

In addition to wiring up the endpoint, this commit also changes the
user endpoints to use two []*Matcher for readFrom and writeTo instead
of a single []string for permissions.
WIP: Implement writes series data on database

* Add setSeriesId to raft, metastore
* Add methods to get seriesIds

[ci skip]
Implement setting of new series id