shortcuts: refactor out framework initialization code
examples: import inject_app from init package
Merge branch 'init-refactor'