Move tabs Hash map to tabs_manager

Move the global hash maps of tabs and tabs index to tabs_manager.