Several backend tweaks

* detabify

* use prepared CQL queries for performance

* add sub-routing in backend handler in preparation for separate end points