Reduce code duplication for generic requests
Reduce code duplication for reading headers
Simplify Dalli::Server#read_header

As suggested by @mperham.
Merge pull request #429 from koraktor/code-quality

Reduce code duplication in Dalli::Server