Web framework for single page real time web apps