Add STMT_COMMIT_HISTORY_SELECT_BY_PHRASE

Previously phrase selection was used by STMT_COMMIT_HISTORY_SELECT
Add two APIs.

Two APIs:
chewing_commit_history_has_next()
chewing_commit_history_get()