Fixes #22119 Just try to get the folder of the user. If it is not there a NotFoundException will be thrown. Which will be handled by the avatar endpoint.
* DI in avatar code * Use the node API * More unit tests * Unit tests no longer require DB