XSS Prevention, #121

Starting the Pull Request and hoping people can help out with this one.

## Must Have
* HTML markup for log and dialog messages.

## Todos
- [x] Escape all input strings (messages, classes, labels...)
- [ ] Sanitize the HTML instead of escaping