Stripping blank lines in SSDP messages to prevent '':'' header entries
Pretty-printing messages.

- headers without value are discarded
- headers are sorted by key (using pprint.pformat)