handle binary data from Datomic

- write a byte array as a base64 encoded json string
- play 2.2.x includes a rather ancient version of commons-codec, so the `Base64.encodeBase64String` convenience method is not available.