ASUS Wifi Access Point: The Wifi router has been flashed with a custom dd-wrt firmware and runs in "client" mode so it is accessible via the internet without a physical network connection. It runs a custom tcp server which receives commands on port 5000 and communicates those commands to the relay box (above) via USB. Future iterations will include a self-contained web server for direct control of the relay box via a web browser. Due to the severe memory and processor limitations of the access point, all code is written in C.
Laptop/MIDI Keyboard: The Mac Laptop runs a custom client which receives MIDI commands from Apple's Core MIDI interface and translates them into ON/OFF commands which are sent to the wireless router via tcp port 5000 (as mentioned above). All Mac code is written in C and its superset Objective C.
When used together, you get a pretty cool, extensible, wireless MIDI controlled relay capability.