AMD support

This PR makes it possible to use Parallel with AMD loaders like Require.js.