A php api for controlling applications on a home network