refactored Pjax. Added title change support. [skip ci]