move external command functions into action_on_host / action_on_service
support downtime scheduling

still needs some polishing, this will follow later