Added BasePayloadTypeAdapter so that Gson will serialize subclasses of BasePayload.
Merge pull request #25 from dariush-griffin/BasePayload_json_serialization_fix

Added BasePayloadTypeAdapter to fix Serialization Issues