Automatically detect raw/translated message type when writing.

The 'writeraw' command is removed - just 'write' and it will auto-detect
the message format.

Fixed #30.
Support 'bus' attribute in raw messages when writing.