Add logging for mcagent erase_node module,
also removed unused code.

Closes-bug: #1255537
Change-Id: Ic80eb700101a1bfa544f1690d7f687e5f166e24c