Slightly changed DeprecatedController to avoid infinite loop caused by redirect generated by previous MediaWiki system;
CoffeeScript moved to prevent script error when sails lifted