Adding destroy function and compile/link in constructor
Remove unneeded references to destroyOnClose
Remove unneeded checks and refactor element compiling
Adapt comments
Merge pull request #291 from geoadmin/dev_popup_destroy

Popup service: Adding destroy function and compile/link in constructor