add raise method to xhr to catch errors in handlers
Merge pull request #681 from lucidstack/raise-xhr-fix

add raise method to xhr to catch errors in handlers