Repository.sync now returns foreman task info or JSON response.
Merge pull request #1656 from kbidarkar/fix-reposync-api

Repository.sync now returns foreman task info or JSON response.