Move modules to lib/ subfolder
Refactor peer discovery, fix #57
Code style
Merge pull request #58 from mafintosh/refactor

Refactoring peer discovery