Add Travis CI
Add passthroughErrors functionality.

Closes #7
Remove debug logging + add "type" param to errors

ref #7