Removing old hook dispatcher.
Fixing variable type.
Removes reference to non-existent variable.
Removes special handling of the basic auth property.