code refactoring for new auth flow
Merge branch 'master' of https://github.com/libris/librisxl