Paypal fork

Some clean-up and minor changes to make sure that all tests run fine. I also added a new command-line command "--enable-remote" to run the remote tests.
This documentation is inaccurate, as if it's not an object or array that is passed, it returns null.

Why don't we return an empty string instead?