Refactor

+ Rewrite code to follow modern node conventions (fixes #2)
+ Replace old "tests" with new BDD tests
+ Bump version to 1.0