support -version flag

and made config.Config passings to references
Merge pull request #35 from mackerelio/flag-version

support `-version` flag