Sample applepay/palypal and refactoring test code

Adding scruitinizer for code quality and removing php-v5.6 build.
Adding working sample apple-pay example
Adding sample paypal example
Miscellaneous refactoring of sample test code to abstract common functionality.