Add basic authentication handler to web service library.
Fix minor linker issues.