Fixed ending / issue
Added conf.php check and fixed json return
Changed intra-framework variables to defined