Updated web_control.py with a basic implentation of the REST API

This is untested on the Raspberry Pi!
Also, reading inputs is still unimplemented.