Bug fixes and inline documentation

core/config/xml.class.php
· Removed var_dump from _traverseXML

core/media/image.class.php
· Only sent headers if file is trying to be displayed

core/system/file/mime.class.php
· Add posibility to set magic file through /config module
PHP 5.3 compatibility

core/validate.class.php
· replaced ereg function with preg_match
Inline comment updates
Merge pull request #1 from coffeemedia/master

Pull request
Added local caching of available modules

As the checkModuleAvailability method is used a lot, it's probably a
goed idea to cache the findings, in case of duplicate calls
Added look-ahead caching for child modules

Added a (static) caching for child module availability, speeding up the
verification process significantly
Fixed a warning when the _path property wasn't an array

$this->_path is not always an array, fixed the warning
Removed old _modulecheck initializer
Inline documentation update

Converted @returns to @return (conform
http://manual.phpdoc.org/HTMLframesConverter/default/)
Converted konsolidate.net domain to konsolidate.nl
Merge branch 'master' of https://github.com/coffeemedia/konsolidate into coffeemedia-master

Conflicts:
	konsolidate.class.php
Restored PHP 5.2 compatibility for Konsolidate

Removed late static binding in favour of PHP 5.2 compatibility (solving
"parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM")
Documentation update

Fixed bug in the use of @return(s)
Merge pull request #3 from coffeemedia/master

Documentation update
Added plain auth for SMTP
Merge pull request #1 from konfirm/master

Pull request to update fork