Normal registration, a little bit of refactoring client JS
Merge branch 'master' of https://github.com/SunriseJJJ/PhotoGallery