Add namespace and autoload.ini, autoload.php.
Add Contao 2.X compatibility.
Change Exception to RuntimeException. Add some changes for IDNA support. Add support for namespaces.
Merge pull request #3 from stefanheimes/contao3

Add namespace and autoload.ini, autoload.php. Add Contao 2.X compatibility.
Still not finished though.
Removed unceccessary C2.X "if (!defined(...))" code and closing php tags.
Several micro fixes.

This includes uninitialized variables, some phpDoc and finally moved all code
to use getResponseHeader() instead of the internal array.
adds .gitignore and composer.json