Non-working commit with most functionality intact.  JSONType on server does not behave correctly when directly passed items from client.