keep the same tab when switching back to live doc

prevent opening a new tab when switching back from a related
document to the HTML file being edited.
add initial implementation for session close
Merge pull request #15 from sebaslv/switch-doc

keep the same tab when switching back to live doc
Merge pull request #16 from sebaslv/close-session

add initial implementation for session close