Move modules registration after all other registrations

Move module registrations after all other registrations.

That way the container will have everything in place to be used if one overrides RegisterModules.