Tag index

Just starting on this, not for merging yet, but feedback welcome.
I think we should have the measurements and series metadata cached in-memory on the `Database`. It'll speed up planning and discovery queries significantly if we don't have to deserialize from the metastore at all. Even 1M+ series won't be huge in-memory.