[feature/avatars] Pass phpbb_user to prepare and process form functions

The phpbb_user object might be used for language variables and other
things.

PHPBB3-10018
[feature/avatars] Remove trailing whitespace from avatar code

PHPBB3-10018