Support output by expression

snippet_html() doesn't work yet because it depends grn_ctx internal
data such as ctx->impl->curr_expr and $condition variable. They are
prepared by grn_ctx_qe_exec() and grn_select(). We need API to set
them.