Properly handle static methods in the ajax parser

I've made this a bit more robust so that it properly detects
static methods and will only instantiate the object if the method
is not static. I've also changed a few parts so that we're always
invoking our methods via reflection objects.