Merge pull request #86 from akkie/master

Avoid var
Change access modifier for methods buildProfile and doAuth to public. So the user can implement it's own authentication flow and it is easier to test.