Support basic auth
Add error reporting functions
Support JOSM