pages app cleanup, bootstrap js as init module to allow preload with delayed execution
pages socket io cleanup