Added support for multi-part messages

- correctly encoding flags byte as first byte of message data
- reading 'more' flag from frame when encoding
- setting 'more' flag into frame when decoding
- added test case for this