Add support for Asynchronous Module Definition (AMD) API

Use define() to setup the CBOR object if AMD is supported.