Factored out code relating to asset management and to pushing data and calls to the browser