Implement a 'format registry', for responding differently depending on Accept headers

probably also do some whitespace trimming.