Methods waiting for async task now return foreman task info or JSON repsonse

...nse.