Added support for browsers

added support for AMD, CJS, and Global browser use. Node still works great!

readme updated.
tests for browser use included (readme documents how to run).