Fix compile exceptions
Add state map to ssh executor and :direct actions
Make implement-action a function
Make tests compile