Ajax Error Handling

https://github.com/shiftplanning/foxydb/issues/10