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
Finish up creating new series.

* setSeriesId changed to createSeriesIfNotExists
* changed tagsToBytes implementation to be more compact and accunt for maps not having keys in sorted order
* remove maxFieldId from database and use a sequence on the bucket for the db in the series bucket instead