Start work on nicer library for PRU code

TI's library for using the PRU on the Beaglebone is really clunky and
not easy to read. Implement a (hopefully) better version for us to use
on this project. May or may not eventually support all the features the
TI library does, although that would be nice.