Add ajax parameter

I've added an ajax parameter that will cause the module to spit out a json string with the errors and whether the registration/login/etc were successful.