Stop other staging tasks for app on new staging request

Verify staging task is the latest by saving latest task id and comparing
it after completion with the one in database.