Switched to JSON in POST operations & got rid of global maps in client.