Add method to retrieve the buffer as a byte array

In order to Base64 encode a vertx buffer in JavaScript I needed a way to retrieve the whole buffer as a byte array in one go.