HSEARCH-1365

* Extraction of serialization and backend modules
* Refactoring of service architecture
* Misc cleanup