Buffer: added writeArrayAsync method (refs #3)

It writes items of an array to the buffer and returns a promise when the
last is one is written.
RestMixin: added .fromRest() method