Correct outdated docstring
Refactor avatar creation

The realm (which is effectively an avatar factory) can now also be passed as an
argument to the server application. Avatars are created in a separated method
to allow for more convenient subclassing of the realm.