Error module for crashing ivory.

@charleso @raronson Can you guys review the scope of the errors
Fixes #209 
Not sure if there's much point for this in tests (but then again it doesn't hurt)