massive refactoring
moved discoverer and logger into platfrom specific directories