Exposing Piwik as an AMD module (Dojo, Require.js)

Is it possible to wrap the Piwik Javascript API into a AMD-compliant module for easier integration into applications using Dojo or Requirejs?

If so, is there any example code out there for how to do this?

Piwik should already work as an AMD module from Piwik 2.0