Added a function to save the buttons and axes of a Gamepad object

saveGP() takes a Gamepad object and returns an object which has a buttons array and an
axes array, mimicing the Gamepad object's arrays of the same name.  This provides the
ability to create a pseudo deep copy of the Gamepad object.