The test-patterns helper script is now more flexible.

The script will run tests for all test/functional/patterns_*.json files when no arguments
are supplied. Additionally, the pattern matching has been shifted into a seperate function;
this affords simple swapping out of the matching backend, allowing others to test their
own implementations.
Adjusting the README to be consistent with recent changes to the test-patterns script