Refactor `cfg.js` and add theme option support.
Use theme from configuration.
Fix bugs.

* Check falsy values instead of strict `undefined`.
* Don't use reserved `package` keyword.
* Fix a missing paren.
* Actually return the resolved config.