Initial commit.

Rework of the python gateway.

Work started from revision cfcc3701b7a1fa5eb88881a3bd831bb97ba408cf
of https://github.com/emoncms/raspberrypi