refactor _tabs.html.erb to meet our coding guide
remove prototype usage in tab js logic

also extract the tab handling into a separate file,
which is included in application.js.erb
save current tab state in browser history
Merge pull request #1230 from opf/fix/remove_usage_of_prototype_tab_js_logic

[prototype->jQuery] Remove usage of prototype tab js logic