Micro-intelligence for the IoT: Teaching the Old Logic Dog New Programming Tricks