Massive update

Move beat model to global.
Web UI overhaul to include mocks and swapping.
Simplified code in many areas.