Serverside: add functions to control GPIO based on commands from phone. Untested.