(bug 44576) Select format based on Accept header.

This implements content negotiation for Special:EntityData,
based on the Accept header.

NOTE: this does not yet implement a redirect to a canonical
URL, so it does not resolve the ticket.

Change-Id: I73ebc6c9936fabd8eb0fb29ed1bce63ced514a4a