Securing the IoT and Beyond: Versatile Security with Virtual Trusted Execution Environments