Add --app-master option

@aauthor because I believe in code reviews...