add a crash handler at initialization

I would like to know about any thread exception that is not caught. I think the global exception handler is safe in that it is only for an application author and this is application code.  It would be better to prove it by only placing this at the beginning of the main function, but this should also be available for development with GHCi or yesod evel.