Add pjax support, add local event stream