Add url command framework

Make it easier to add new commands that can be intercepted by kweb.  The
existing commands of start_measurements, stop_measurements, and terminate have
been ported to the new way of doing things.