Replaced ThingFailed with ThingError throughout

This means that errors can now be properly internationalized, among
other things.

Changed doError to work with the RC, since that's what we usually have
handy.

Also deleted the old and deprecated setProperty AJAX call.