Fetch HTTP headers from the App

Removing the xdebug function that fetched sent HTTP headers.
From now on there is no dependency on xdebug extension.