Remove the last ampersand and the question mark if there are no GET params

Also:
- add the "blank" gravatar type
- update dependencies
- refactor the code