Removed an unused block in mediator
Fixed issue with possible asynchronous requires overwriting each other and causing build fails.
Repackaged client script.