Enclosed app code in starter function.
Added global configuration module.