Make messages better readable for scripts

- In JavaScript, there is often a newline in values.
These changes should fix the machine readable messages (ALIST and
ROOMLIST mostly...)
- I also changed the order of the divs and templates. This way, multiple
template binds can fill the device status display