Rewrote Goupr to ressemble TAP implementation.

goupr needs to be integrated with go-couchbase, and the previous
implementation was different from TAP supported in go-couchbase. This rewrite
is similar in design to the TAP implementation.