add raw read/write commands
Clean up code and response.

Also ifdef out the raw mode by default.
Fix locking vs. blocking error indication.