* move services to lib * move methods to lib * fix imports
* Migrate loadThreadMessages to TypeScript * Update interfaces