Move the interaction with pipeline2 to the web service

as opposed to the cli where we'd run into problems when using it with an
unprivileged user.