Make SQLiteModelStore thread-safe.
Make rest client process responses on the thread-pool.
Move sync to thread-pool.
Fix message bus main thread scheduling.

The MessageBus main thread scheduling did not mark the scheduled worker
to be finished, thus main thread items were delivered only once.