Fixed appscale return codes

This is ready to be merged in