Refactor CMakeLists.txt: glob APIs rather than listing verbatim.
Issue #1000: Was anything NOT changed in this commit?

Massive commit which fixes a ton of bugs and implements the GUI workflow
up through registration.

Lots of lazy assumptions made here (like "there will only be one
verifier" and "there will only be one registrar") which need to be
fixed, but it basically works.