Add config.go and unit test
Merge pull request #2 from godist/config

Add config.go and unit test