Bugfix: setHostingApp
Bugfix: server connector now doesn't try to treat an error response as JSON.