Include the method name in the error message
Use call_user_func() to avoid throwing a reflection error
Make us able to detect a version 1.0 client

We detect a version 1.0 client and then tailor our response
to be 1.0 appropriate.
Better error message for NULL input
Don't log the version, it was for debug testing only
Use the same error level for the handler as the rest of the script
Use call_user_func_array() so the variables come across right
Make sure we set the response header appropriately
Store the method/params so they can be access in onSuccess/onError
Throw an exception if the method name is missing
Clean up all the whitespace, and convert to tabs
Include the method name in the error message
Use call_user_func() to avoid throwing a reflection error
Make us able to detect a version 1.0 client

We detect a version 1.0 client and then tailor our response
to be 1.0 appropriate.
Better error message for NULL input
Don't log the version, it was for debug testing only
Use the same error level for the handler as the rest of the script
Use call_user_func_array() so the variables come across right
Make sure we set the response header appropriately
Store the method/params so they can be access in onSuccess/onError