// Changes the status of App a to the given status and priority.
// By design priority is ignored for all statuses other than STATUS_IN_USE.
func ChangeAppStatus(a *app.App, stat int, prio int) {
	a.Status = stat
	a.Priority = prio
	sendDependencyNotice(a)
}