Adds Switch creation and toggle via websockets etc.