Make Icinga\Util\File an object

Was a class with just one static function beforehand and is now a fully
object oriented alternative for how files and pipes can be handled.
PHP warnings emitted by fopen, fwrite, fread and chmod are catched
and thrown as exceptions.
Fix deadlock when writing to the command pipe while noone is listening
Use Icinga\Util\File instead of fopen