fix #4580 back port PR for release/v1.5, refer to #4581
* reenable random avatar feature * replace Size check by Filename check
* refactor setting router code splitted up one huge router settings file into the smaller files representing the actual page structure * move code to subfolder * rename functions * renamed files * add copyright information