Initial BBB IO library commit

Borrowed from nunoalves/BeagleBone_IO_lib
(https://github.com/nunoalves/BeagleBone_IO_lib)