Filesystem.class.php: Additional functionality and unittests.

Implemented method wrappers for several of the filesystem related
PHP functions to the `Filesystem`-class. Unit test cases for have
been implemented, with mockable PHP functions.

Also, modified the phpunit.xml to better handle errors and warnings.