encode commands and responses with base64

- Fixes #4