Enables LMS to handle deprecated URLs

LMS-2651
We do this throughout cms/envs/common.py, see eg https://github.com/edx/edx-platform/blob/master/cms/envs/common.py#L32 and https://github.com/edx/edx-platform/blob/master/cms/envs/common.py#L298 for two of many examples