Pi provisioning (MAAS) - webhook power driver

Maybe someone will find this useful:

use a smartplug to power on / off a pi, and enable automated provisioning with MAAS (https://maas.io)