Cache disk fingerprint->metric lookups in memory.
Fix "make format".
Drop empty series from memory after flushing.
Move check for empty memory series to separate method.
Merge pull request #305 from prometheus/feature/cache-fp-metric-lookups

Cache fingerprint->metric lookups and drop empty series from memory on flush