Consolidate Gson creation into a class

A Gson instance is created in three different places. Consolidate
them all into a single class so that we only have one instance, and
so that any changes to the way it's created only need to be done in
one place.

Change-Id: Id8cbc5c44114b43a50e3900c7ad9921b8c056744
5 files changed