Theming
Lots of code from Rouncube, this needs to be simplified...