Add rsync integration test
Fix as-action

as-action was not providing a state monad return value.  It now returns the
value of it's body and the input session as the monadic return value.