refactor packet structure, update json server to use new structures
update client to use new packets