Allow changing of badge type

Allows admins to actually change the badge type when they try to change
the badge type.
Improves auto incrementing

Fixes a bug where new badges were being assigned the same number as the
last badge in the range.
Check the full range of badges

Changes the query so it includes the very last badge number in the
range.
Merge pull request #781 from magfest/fix_badge_num

More fixes for badge numbering and renumbering