Ensure modules have command line properties

Also changes XdInitializer implementation because it
wasn't getting called in the right order, and it didn't
really need to be an ApplicationContextInitializer.