Merge pull request #18 from herby/master

Making amdefine self-contained so easily embeddad.
rev for 0.0.7
Important fix: parameter require shadowed node's.

Thus, require('path') failed miserably.
I was too confident that I make a vert simple change and did not test.
Renamed all uses of require parameter to requireFn by refactor tool.
This code is tested to work.