Added AMD compatibility

I've been using node-uuid in a webapp, so I added compatibility for for the Asynchronous Module Definition (AMD) API. I tested it with RequireJS in Chrome and Safari. There should be no changes when using it with Node.js.