Add macros for generating an "ioctl map"; simplify implementing ioctls. Change gd_ioctl_gen output format