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
Merge "console: terminate connection on certain bad requests." into idea133-milestone