Update beacon image server to new JSON format.

Unpack JSON structure in query string and print it.
Also warns if query string isn't terminated with ';'.
Improve error reporting and change terminal sequences slightly.

Change-Id: Ib3d6cb2856402dd181f06fb75809d537726f5f7c