How the craftsmanship culture of Japan’s former capital paved the way to a global hub for IoT and hardware startups.