Fix some broken calls to functions
Remove basic auth code paths, throw with invalid params, remove requirement for algorithm attribute on options object.