Added network connectivity, and packet processing.
Added JSON protocals and a main loop for cmd program.