fix #4580
* 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