Catch all jquery xhr errors and display flash message, closes GH-29