Add Ajax error handler [Fixes #4]

When the session with Google API has timed out, Ajax requests silently
redirect to the login page on Google. This commit fixes that by
intercepting all Ajax errors and printing an error panel instead.