Consistently seeing if appscale is up or not

changed terminate instances to see if appscale is running based on secret key, so that it matches run-instances