Move common tokyocabinet code to a library.
Setup routing for multiple KPIs.