Address more review comments.
Fix Migration code.
Update lms config for non devstack
Get rid of obsolete _xmodule_recurse function
Updates from review comments.