Added main class providing the entry point.
Added system constants to main file.
Added authorization check to XJson.php.