Refactors javascript communication so that it self contained within the PyGlassCommunicator.py class with a hook call in PyGlassWebView.py when the page loads.