refactoring templates
first version of pjaxr detection incl. refactoring of *_TAB TO *
Fixed formatter fuck up.
Merge with d67e6e04d0bdb8caacc55b478faf2a8988c6a9f1.