Added toggle for entity fields.
Created by: andylbrummer
This change adds a toggle element to the upper right corner of every form. It toggles the state of the form between on site and office views. This hides and shows fields based on the visibleStates property of the jsonSchema definition.
The state of all the toggles is shared across the application and is persisted, so when any form is set to a state, all the forms will be set to the same state.
Fields marked with visibleStates: "any" will show up regardless of the form state. The two form states for the toggle are [null, "onsite"], null will show all fields regardless of their visibleStates property. This means that most field definitions don't need to be updated.