network game enhancements. added mediator.js
fixed merge