Moved common config out to its own file
Beacons and badges now share setup
Removed lots of unused variables from beacon
Add common_config.h to beacon
Tidied up some globals in badge code
Removed another couple of globals from the badge
Re-added one global to badge; fixed common_config.h endif
Merged dpslwk's fixes
Reapplied dpslwk's changes to common_config.c