Support the new Api-User-Agent header

This HTTP header can be used by user scripts and gadgets to identify
themselves in server logs. This will allow WMF staff to notify us if we
are using API features that are about to be deprecated or removed.