Revert "More power savings: No need to keep a history of outgoing packets"

This reverts commit 887070dbe6b6258ba04f988fd90c3ac856d2e5bf.
Revert "Take advantage of the hardware encoder's ability to prepend SPS/PPS"

This reverts commit c6920dfdca378a168a2168f4a64d21af4d37d539.

Conflicts:
	media/libstagefright/wifi-display/source/PlaybackSession.cpp

Change-Id: Idef843ef8d68d5b495debf6a9f42231349178954
Revert "Even cleaner shutdown."

This reverts commit 77245813007cf903b4b73f5d0cd20313fbf0e510.
Revert "Tell the encoder to emit SPS/PPS before IDR frames in wifi display code."

This reverts commit 3a0ef0dc71f3776d115f30d87f1d8867daefea88.
Revert "Various improvements to a cleaner shutdown of the wifi display connection."

This reverts commit 96fc6cc65ca93009a759a3a874b82a35771b9714.

Conflicts:
	include/media/stagefright/SurfaceMediaSource.h
	media/libstagefright/SurfaceMediaSource.cpp

Change-Id: I711aca46e7f2b0240a3464e2d71a6b6efd7b7caa