console: terminate connection on certain bad requests.

This is a back-port of https://android-review.googlesource.com/#/c/108762/
to our milestone branch.

	console: terminate connection on certain bad requests.

	This patch ensures that the console terminates a connection when
	it detects that an HTTP request was entered as a command, or that
	the command contains an invalid UTF-8 sequence.

BUG=17584992

Change-Id: Ib50f003415cedf1bfc20cc50703f736c5def0461
(cherry picked from commit de2bc2a3a3d4342d91893841bf202116236c7643)
Merge "console: terminate connection on certain bad requests." into studio-1.0-release
merge in studio-1.0-release history after reset to a200acb12ec8d97fc918423ee142cdf728325b10
merge in studio-1.0-release history after reset to a200acb12ec8d97fc918423ee142cdf728325b10