Fixed circular dependency to ensure plugins aren't instantiated until after Application is created