Source code for proof of concept at https://cloudimpulse.wordpress.com