x893,
Concerning your gpio_remap code, a limited amount of the same functionality is present in the new gpio.h in the refactor branch:
https://github.com/leaflabs/libmaple/blob/refactor/libmaple/gpio.h
Granted, your code is much more general. I'll put some more remap-related convenience routines into the GPIO interface at a future date. For now, however, I'm focusing on finishing the next release.