Initial WS auth bugfixes.

Fix basic auth stuff. (Wrong module name used for the default context).
Set default return value for list_workspaces()  so it works in the no-workspaces case.