Moved to a new pattern compilation system. Moved to PEAR-style naming for compatibility with PHP <5.3. Added a couple unit tests