SPI: included stdlib.h for free()
beaglebone: defined all wiring functions
wiring.h: moved LSBFIRST and MSBFIRST out of ARDUINOGALILEO idfed
beagleboneConfig: repaired small bug in getGpioByName/Key functions