Allow registering callback for parsing HTTP headers

Slightly changed version of Espen Jungersen's
commit 548141e72312126fa6121f6a5f436251c7fb1251 for forked-daapd.