PTFM-2818 workflow analysis api updates

@kislyuk, please take a look; this is just a basic first pass at CLI support.