http: various cleanups

This also adds a missing copyright header in TestAnalyticsNotificationQueue.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>