Check for the existence of specific functions instead of just checking
to see if GD is bundled.  This provides granular support in more cases.
Resolves http://dev.kohanaframework.org/issues/4735
Improve GD function detection
- Create constants for the function names that we're testing
- Move function array declaration outside of foreach()
- Drop the !isset() calls because it was broken, and it's also
  unnecessary since all the values are guaranteed to be initialized.
- Change self:: to Image_GD::
- Restore empty() checks.
Image_GD:: -> static::
Go back to using Image_GD:: for consistency with the rest of the file.

--

Revert "Image_GD:: -> static::"

This reverts commit 357410627f9b27e5f77b1f2ade1a57a4a0601de9.
Merge pull request #13 from bharat/3.3/develop

Improve granularity of GD function detection
Add composer.json to support installing with composer. Fixes #4776
Merge pull request #14 from ingenerator/3.3/feature/4776/composer-package-definition

3.3/feature/4776/composer package definition (refs #4776)
Update composer branch alias (refs #4776)
Merge branch '3.3/develop' into 3.4/develop