Documented code, consolidated jsonproxy.php