Correctly trigger when tab is changed.
Create map of documents.
Use proper date for pasted data.
Fix #3: Support tabs.