cosmetic code fixes and minor refactoring in reef-webserver avro code