Remove usages of user.username and try to use user.get_username if available.
Merge pull request #2 from hannseman/master

Remove usages of user.username and try to use user.get_username