PHP Class that is an API starter for an AJAX interface