Error module for crashing ivory.

@charleso @raronson Can you guys review the scope of the errors
Fixes #209