Reorganize code
Update to version 1.5

Fixed bugs with tab history when closing tabs.

Added option to keep consecutively opened tabs in order when all tabs
are opened next to the active tab.