added detect ajax requests
added json_decode_nice fn
added GeneralFunctions.php and DebugFunctions.php to autload