Adding proper templating.
Fixing the open-load-attach workflow for tabs.
Plus, big merge with artemijan.