Added a test for update_avatar and refactored.

The _get function now handles optional parameters.
Merge branch 'master' of github.com:Garee/PyTodoist