Add :app option to the component generator, fixes #1567