Moved all MODX related code into its own module@