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.
Merge pull request #1149 from influxdb/http-api-shards

Http api shards