Move xmodule_runtime.xmodule_instance registration earlier.

This allows XModules (specifically CombinedOpenEnded) to use ajax_url
during their __init__ functions (which would, before, have thrown an
excpetion).

[LMS-1493]