Refactor for version 1.0.0

New external API, module now exports the type.
Removed browser version, just use browserify.
1.0.0