Basic IOCTL dispatcher. Need to think about control codes yet...