Add needs-restarting command.

Includes unit test, packaging and documentation.