Adding cask task for go-agent and go-server

Closes #5352. Commits are squashed and the new preferred syntax is added.