Fix for #261 - add in-app header

@settinghead @stevesherrie please review
@olegrise @stevesherrie  Should CH also handle the loading of gadget api library, or you think this is better left to the individual apps?