Changed getData to setState

Change the getData name to setState as it describes more on what's actually happening
Moved the BinarySerializer to the RemoteAPI
Added U8/U16 readers and read/write to get/setState
Support read/writing back state for RemoteAPI
Some temporary logging
Misc updates to support debugging
Updates due to API changes
More support for Remote targets