persist profile control mode.
setup sockets in app.
template handlers for profile modal dropdowns.
persist profile sensor.