Fixed startup initialisation.

There are a few rough edges still, eg. CEF's debug logging is always
enabled, and I'm currently using a global object for the LOOT-specific
data, but these can be changed.