Since we have started integrating with more clients, we have found that the usernames that get passed are not compatible with our username restrictions. This PR introduces a function to clean usernames to make them compatible, particularly in the auto registration case.
common ------ This directory contains common code shared between LMS and CMS, such as Mako templates, CSS, and Coffescript.