Replace patches using sed and perl with pure php.

Hi, all.
I've implemented #343. This pull request is a bit large and might have architecutral design issues, so it would be helpful that you could point them out.

The summary of my changes is the following:

* Replace calls of sed and perl oneliners with `preg_replace` function calls.
* Define `PHPBREW_EXPECTED_PHP_DIR` and `PHPBREW_FIXTURES_PHP_DIR` in phpunit.xml.
* Introduces a common interface of patch utility classes.
* Add a new class `RegexpPatch` which replaces a content of files using regexp.
* Add tests for `Apxs2PatchTask`, `Patch64BitSupportTask`, `RegexpPatch`, and `RegexpPatchRule`.
* Add an utility class which provides a way to create temprary files in tests.

Sincerely.
@c9s I've add `always`, `anyOf`, and `allOf` methods as a response to your question(https://github.com/shinnya/phpbrew/commit/2b52fc23cdced1c4d572f74acf350786e34a1ed9#commitcomment-8942587). Do you like this change?