Remove hardcoding of key syntax for base url

and /static and /jump_to_id link substitutions
LMS-11198

@cpennington @doctoryes please review
Honestly, this code is not easy to read - though it might be just my green-ness. Any additional commenting you can do would help who follows - but not a pre-req for pulling.