applied some parts of http://peter.bourgon.org/go-in-production/
- used build tag for integration test
- simplified package structure as int package not needed
- switch from env variables to flags
- ran go vet and golint