Implemented history tab, changed tab switching to non ajax, some php on ...

Merge new tab pages to master