Handle stream errors gracefully

Now should catch and emit errors from lib/expr.js, avoid infinite
loops on unclosed braces, and stop emitting data after running
into an error
Merge pull request #6 from hughsk/error-handling

Handle stream errors gracefully