refactored command / messaging / api infrastructure to allow CLI commands to come in via connectivity task