Cleanup code and take recent changes in kdev-php into account.

Most notably, we won't get notified about the internal function
file getting loaded via the background parser anymore.
Fixup style of embedded PHP documentation.