I got something working

Working code, kinda messy. Still a work in progress. Biggest problem is
wifi dropping out. The beaglebone black and the arduino like each other,
after turning up the baud rate.