Allow configuration of avatar URL

This PR continues the work performed so far in #134, adding a facility to allow configuration of the URL which is to be used for retrieving a user's avatar, including selection of an alternative fallback.