added coffescript mixins
added mediator singleton
refactored for mixins