Fix logging on immediate exit on start

If elasticsearch was started in the foreground an immediate exit on startup
led to logging in the logfile, where as when starting in the background,
an immediate exit logged to stdout.

Closes #4805
Follow-up of #4808, same fix applied to ToXContent.MapParams
Return `MatchNoDocsQuery` if query string is emtpy

Closes #3952
Return a conflict when trying to enable/disable norms.

Close #4761
Deprecated use of partial fields in Java API, was already deprecated in the docs for the search API

Closes #4118