Create Bracket.py for defining the Bracket class
Move model helper functions to own file

The model file was getting huge and really should only contain DB tables
and relates class/API calls.