Renamed mem to text_mem
Added support for Xfer:features:read:target.xml
Added missing macro constants and data_mem array
Added support for writing to target memory

This requires support for two commands:
- X, the server replies with an empty package to tell the client to use the M
  command instead and
- M which sends the address, size and value to write