remove now-unused code

this stuff was only used by AutoConverter, which we got rid of on the
headless branch
remove now-unused code

this stuff was only used by agent monitors in the GUI
shuffle code out of api package into Optimizer

cleaner since the methods were only ever used in Optimizer
add comment