Basic 'erts-apps' functionality.
Basic 'erts-apps' functionality. Refactoring.