Moved some stuff into functions.inc.php
Removed header comments

Will later include those back with Grunt