Upgrade fixes

- Connect changed the API slightly, it does not return whole response object (like `Net::HTTPServerError` but only the error code number).
- some small fixes included
OK