Catch panics in handlers and wrap them into exceptions.
Merge pull request #10 from edmodo/edmodo-fix-panics

Catch panics in handlers and wrap them into exceptions.