corresponding changes to the arduino code

follows the suit of the python script.  In the
main loop it waits until a 'get' or 'post' is
needed and then the arduino will respond accordingly
(response not implemented)