Implement proficiency-based stat experience

Stat experience is now calculated based on attacker's overall
proficiency (a function of skill mastery and battle level). Also made
some under-the-hood changes in preparation for implementing skill
experience.