Refactored the PayPalGateway into its own files.
Moved array_to_string from Controller_Payment_IPN to IPN class.