Major overhaul of codebase.

Changed the way the config menu hides.
Attempting to improve performance of angular - it seems to run every
ng-class and ng-style when one thing updates, which slows down
performance very much.