Implement json ipc

This branch does not implement any new features in Invoker But:

a. replaces Slop with Thor.
b. Implements JSON IPC for exchanging messages between processes and hence making it much more extensible.