Improved API: gen_app:start/2 instead of puzzling app_sup/2. Simple support for distributed applications added. Refactored gen_app into gen_app and gen_app_app, the latter being the application callback module. This was needed to be able to provide gen_app:start/2.