Change usages of is_safe_url to use new allowed_hosts instead of host
common ------ This directory contains common code shared between LMS and CMS, such as Mako templates, CSS, and Coffescript.