added some checks so header.php wont interfere with any other app
remove space alignments
Merge branch 'master' into external-improved

Conflicts:
	external/header.php
Fix merge mistake.

Also exclude flush() and ignore_user_abort() from profile data.
Merge pull request 52 from 'anho/external-improved'