pass config to subapps

closes #3473
Merge pull request #3477 from minrk/subappconfig

pass config to subapps