move everything related to test_info out of start_gateway

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