Expanding services, callbacks, and service threads. Adding json support.