diff --git a/src/build.xml b/src/build.xml
index 0b73a386..0f2eeef8 100644
--- a/src/build.xml
+++ b/src/build.xml
@@ -18,20 +18,20 @@
-
+
-
+
-
+
-
+
-
+
Compile templates
@@ -41,13 +41,13 @@
-
+
-
+
@@ -57,7 +57,7 @@
-
+
@@ -66,7 +66,7 @@
some info to files -->
-
+
@@ -80,19 +80,19 @@
+ 'delete' task because it does not work with dirsets -->
Remove temporary files
-
+
-
+
diff --git a/src/mibew/styles/dialogs/default/js/compiled/templates.js b/src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js
similarity index 100%
rename from src/mibew/styles/dialogs/default/js/compiled/templates.js
rename to src/mibew/styles/dialogs/default/templates_compiled/client_side/templates.js
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/avatar.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/avatar.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/avatar.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/avatar.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/close.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/close.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/close.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/close.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/history.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/history.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/history.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/history.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/redirect.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/redirect.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/redirect.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/redirect.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/refresh.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/refresh.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/refresh.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/refresh.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/secure_mode.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/secure_mode.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/secure_mode.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/secure_mode.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/send_mail.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/send_mail.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/send_mail.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/send_mail.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/sound.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/sound.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/sound.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/sound.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/user_name.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/user_name.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/controls/user_name.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/controls/user_name.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/layout.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/layout.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/layout.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/message.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/message.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/message.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/message.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/message_form.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/message_form.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/message_form.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/message_form.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/base.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/base.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/status/base.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/base.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/message.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/message.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/status/message.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/message.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/chat/status/typing.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/typing.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/chat/status/typing.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/chat/status/typing.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/invitation/layout.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/invitation/layout.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/invitation/layout.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/invitation/layout.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/description.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/leave_message/description.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/description.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/leave_message/form.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/form.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/layout.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/layout.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/leave_message/layout.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/layout.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/sent_description.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/leave_message/sent_description.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/leave_message/sent_description.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/survey/form.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/survey/form.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/survey/form.handlebars
diff --git a/src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars b/src/mibew/styles/dialogs/default/templates_src/client_side/survey/layout.handlebars
similarity index 100%
rename from src/mibew/styles/dialogs/default/handlebars_templates/survey/layout.handlebars
rename to src/mibew/styles/dialogs/default/templates_src/client_side/survey/layout.handlebars
diff --git a/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars b/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars
index c24b263d..e749b203 100644
--- a/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars
+++ b/src/mibew/styles/dialogs/default/templates_src/server_side/chat.handlebars
@@ -15,7 +15,7 @@
-
+