Ready/164

As far as I know the only things caught here are duck typing errors and the like from the js side of things that we can't handle, but that also shouldn't crash the whole thing. It'd be stuff like `undefined is not a function` or some other cryptic thing deep in jquery or so.

We can catch these here though and provide some blanket error: `There is some internal problem, please report this.` or something, but we wouldn't be able to get any worthwhile information (like what the actual problem is) unless the library throwing it provides descriptive error messages or we dump the whole stack trace in the logs.

What do you think?