adding content header and length for json output
ensure session_start() is only called once
expose debug messages object
Added default base path to be the realpath of the directory of Epi.php file