added accept header processing
Merge pull request #32 from jricher/accept-header

added accept header processing