Add ability to stop and down nodes.

Ready for testing and review.