Re-wrote update handling to use subscriptions. Added initial JSON POST support.