Rewrite incoming, going to concentrate on JSON interface now.
Started building out the core of the service.