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

This refactoring helps to remove remaining prototype code and aims to make our code better maintainable by the way.

Also adds a feature already existing in redmine: the current tab state will be saved in the browser history (and current url) if the browser supports that

see:https://www.openproject.org/work_packages/7066