Refactor gpio library by itself.
Mid-refactor work to make the modem a reality.