add `type` field to be returned from `.json()`

Adds the facade .type to the json payload so we don't have to do
it manually. Sets .json() to better match the spec
duo: get tests passing on both node and the browser
Merge branch 'duo'
updating makefile with local duo build
Release 1.0.0