getPinMode: get GPIO status of pin configuration

var x = getPinMode(pin);
* x.gpio.active: boolean if kernel has GPIO exported
* x.gpio.allocated: boolean if application has allocated GPIO
* x.gpio.direction: direction of GPIO