Refactoring to support MySensors.org Version-Bot

Henrik, we will need this refactoring for the Version-Bot.