Remove deprecated functions

Still used in the migrator, but that's broken atm anyway.
Limited retention, part I

Add the config settings and make the insert goroutine drop old rows.

Still need to actually drop old data.
A bit of test cleanup
Limited retention, part II

This is the other half of the feature. When flushing, discard any
intervals that are out of retention rather than merging them into
the next state.