pass config to subapps

closes #3473