A......... [ZBX-8832] Fix importing template applications when there are applications with same name in linked templates.

git-svn-id: svn://svn.zabbix.com/trunk@50444 f4e7fd02-d210-4e34-a1e0-d4093fb66cc2
.......PS. [ZBX-8476] fixed queue being calculated incorrectly when there is even a slight time difference between server and proxy

git-svn-id: svn://svn.zabbix.com/trunk@50445 f4e7fd02-d210-4e34-a1e0-d4093fb66cc2