Tag index

Just starting on this, not for merging yet, but feedback welcome.
Don't we still need fields under `Measurement`?