Add WebP compatibility to GD

This PR implements the functions [`imagewebp`](http://de1.php.net/manual/en/function.imagewebp.php) and [`imagecreatefromwebp`](http://de1.php.net/manual/en/function.imagecreatefromwebp.php).

Closes #3141.

PS: This implementation has a third parameter for `imagewebp` (the quality in percent). It seems like PHP has the same parameter although it is not documented.
Could you wrap this in a urlencode() or bin2hex() or something so that we don't wind up with non-ascii in the test output?

Bad things happen otherwise.