javascript fragments list and code cleanup
empty lines cleanup
removed dedicated TT wrapper for popup windows
TT macro whitespaces cleaning
close popup window after actions or on discard button
added missing message.tt
fixed new device form