Add all legacy code to the new middleman framework.