Move common code to common.coffee.
Account for having no next set.
Previous statement downloader.
uncaughtException handler.