Add checkAbilities function to scripts
This function checks the selected abilities against default abilities.
It's used on Ability Exchange.
Merge branch 'master' of http://github.com/Zarel/Pokemon-Showdown