Add souper-check tool

This tool is based on souperweb-backend.cpp, but it's
intended to be run from the command line.