luci-base: rpc.js: revamp error handling, add interceptor support