Refactor

+ Rewrite code to follow modern node conventions (fixes #2)
+ Replace old "tests" with new BDD tests
+ Bump version to 1.0
Merge pull request #3 from kaimallea/refactor

Refactor