Added BattleHUD and Revised Many Functions.

BattleHUD mostly complete. Added to BattleCore framework. Revised many
various functions to make them easier to understand.