Misc functionality common to all the web apps.