Refactors and better specs for Cylon class

Adds tests and minor refactors for the Cylon Master class.

I can't figure out how to test a couple methods (e.g. `#startAPI`) without either doing a lot of setup or incurring a substantial time penalty, so I'm not sure if those don't really need to be tested that bad or are calling out for a refactor.