Expose QObject to javascript

-Added mediator object that exposes c++ functions for javascript to
call.