Micro-intelligence for the IoT: SE challenges and practice in LPaaS