add support for re-authentication

add base method makeUrl, and different method to get loginUrls
update description and refactor code
fix 2 space indentation
small fix
Merge pull request #310 from SingularityGuy/master

add support for re-authentication