Add public API for \OC\Avatar

#4920
@DeepDiver1975 @bartv2 @bantu