In Gen 6, no Pokemon can battle with >510 EVs

I moved the big block of EV validation to rulesets.js’s Pokemon
ruleset, and modified it slightly to make it work.