Add AMD module definition support

Uses a simplified UMD pattern to support both AMD and browser global use.
Merge pull request #1 from joecorcoran/master

Add AMD module definition support