* Consolidate env expansion at top level
* Move handling of deprecated config into resolve method
* Handle template interpolation in resolve method
* Clean up and document resolve function
* Register notification hooks first in init to allow sending .init() failure notifications
* Error from run_script is not consistently passed to deferred functions
---------
Co-authored-by: Frederik Ring <frederik.ring@gmail.com>