Modularise applauncher API

http://jira.webinos.org/browse/WP-963