tests passing
Kept original expectations.

Many libraries expect a JSON object and not an array, so for comatability
this is a little better.
Promisified everything.