Move mediator.js from lib to root