Simple addition to allow login via any library

Allow login via arbitrary library. 
_perform_library_auth can be overridden by the user to support libraries with another format.