Add a more convenient method to update user profile.

Add `UserGateway::updateProfileFromArray` and use it in `UserGateway::updateProfile`.

Add type hint to `UserGateway::updateProfile` `$birthday` argument.

Formatting changes.