Added support for themes. Pending preferences setter and local themes loader