simplify get_handler
whitespace
callbacks return c_int, not i32
factor handler stuff out into a file of its own
get rid of duplicate ParserType enum, use re-exports instead