Rails API for turning Raspberry Pi leds on/off