Common user agent in base gateway class.

Move the duplicated user agent hash to the base gateway class. Would somewhere else be more appropriate?