Improved custom avatar system.
Merge branch 'master' of http://github.com/FrPSServ/Pokemon-Showdown