Cleaned up tests, added a bunch of tests.
Use phantomjs from npm.
Refactor for more streaming. Basic custom types.
version bump