added support for themes

- the active theme is set in the config.js config -> theme -> active
- added "simple" theme
- removed templates.js
- added option for disabling the frontend.
- added option for loading the theme once at startup