User input via wifi.

Thanks for reading:
I want to input commands to the Yun via wifi.
i want 4 commands:

  1. Turn a servo 90 degrees CW
    2)Turn a servo 90 degrees CCW
  2. do some analog read
  3. tell me the approx. distance of two objects using 2 proximity sensors.
    I want to have the gun in one room and be able to control this from somewhere else
    How can i do this?
    Thanks!