Make TempoDB support a bit more generic. Move Kx specific bits out of the public repos.