refactoring gateway/gateload collect info

Change-Id: Ie886887f3a5ce596a444264fb6794e0d2181703b
Reviewed-on: http://review.couchbase.org/36850
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Li Yang <lichenyang2@gmail.com>