Update robot.js to have finer control over speeds. The sensor that is
active now defines both the vector we want to go towards to avoid an
obstacle, and the speed we should go when that sensor has seen
something. This enables it to avoid obstacles and to go much faster
when no obstacle is present.