Update HTTP/clientlib dependencies + cleanups.

Change-Id: I175ac4874b25358dd569866e3d575ba49e4357f2
Fix alert expiry crashbug.

No, the array representation of a binary heap is of course *not* sorted.

Change-Id: Ib18c9b7e1bee24391f98d73135ac19c77026b168