Theme check

* Theme check is moved to init stage; this enables the framework to be
injected by plugins without the theme having to be known at the
construction stage.