Useful common functionality for tornado-based projects.