Add test for case if loading credentials from storage has an error
Simplify debug node message processing.

Make processing more consistent irrespective of complete flag.
Avoid processing when node is inactive.
Avoid duplicate code.
Merge pull request #306 from hindessm/simplify-debug-node

Simplify debug node message processing.
Merge pull request #304 from hbeeken/test-credentials

Add test for case if loading credentials from storage has an error