From Cloud to Edge: Seamless Software Migration at the Era of the Web of Things