Enables LMS to handle deprecated URLs

LMS-2651
It's used by accounts_login, unfortunately.  I agree it's gnarly and I'd like it gone, but I'm hesitant to do a change that affects the login flow as part of this PR... I could add a TODO or a bug for the backlog?