Fix build
Improve public api
Add basic build script
Make travis run tests
Tweak travis