Refactor Bugsnag.payload

Change-Id: I65c5f246fbfe99c0d258715603c9e05427be3562