Refactor flag types

Change req.ok and is_first flags to char instead of int for efficiency
(Fixes #30)