Import code from digitalbazaar/forge