Split up bracketsController.js into 2 new controllers, for better separation of scope variables and performance.

I also removed a few functions which weren't being used.