Modularise the applauncher API

Also requires re-merging previous commits lost during modularisation work.

Jira issue: wp-963
Add applauncher API test page.

Jira issue: wp-963
Remove debug alerts.

Jira issue: wp-963
Merge pull request #1 from TobyEalden/wp-963

Modularise applauncher API