fix for the very annoying, frequent 504 timeouts when updating application state. Don't just wait for the response from vcap - if you get a timeout then continue polling until you get an updated state in the app so you know that staging has finished. boom