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.