Added a ToggleManager, to manage the toggles.

Acts as a replacement to the old toggles.getConfig() access.