Added caching of legacy capabilities
Merge branch 'master' into xep-0223
Only overwrite preferences with theme when them loaded, not on startup
Merge branch 'master' into xep-0223