Changed format for passing data between clients and server to JSON object packed as string for convenience with web interface.