Moving core handlers to the module loader file. Leaving plugin handlers to be dealt with later in original file.