App: Adapted PingApp to send pings only between start and stop and when the node is up.

Added test cases for all combinations of node startup/shutdown and ping app start/stop sequences.
todo, split