Plugins execution before Main

Makes sure that the plugins are loaded and processed before the main
script is executed. Important if we reference any plugins in there.