added nconf and config refactoring
Merge pull request #5 from ednapiranha/nconf

added nconf and config refactoring