added inc/assets.php stripped from plugin_functions.php
plugin_functions only functions, plugins now initalized in common.php, you cannot simple include plugin_functions.php to load plugin system if anyone is using this take note.
debuglog is now passthrough , it returns its argument so you can use if to wrap inline closure returns
moved some constants to common
fix content type headers unneeded conditional