Go formatting

04fs
Fixes for issues:

Issue #7 - fix for server invalidly caching result.
Issue #8 - updated to return 401 for missing fields (proto change)
Issue #9 - switch to centralized error reporting (remove dup errors)
Issue #10 - moved websocket service to root (wss://server:port/)
Issue #11 - added "ping" response
Issue #12 - return sent fields with register/unregister reply
Fixes for Issues...

Issue 13: Misread the spec, returned generator for empty UAID
Issue 14: Added socket initialized check for select commands
Issue #15 - Fix to socket UAID state detection for Hello message.

Also: fix to genKey to return cat'able key line for server configuration
Issue #15 - Fix to Hello to allow resubmit of same UAID
Issue #18 - Added limits to UAID and ChannelID

Also added preliminary support for update proxy support for sharding
Issue 16 - Added trapping for json parse errors

Also, moved genKey.go to sep. directory to get around mac go
complaints.
Issue #19 - added 200 response to ACK

While not defined by protocol, adding a 200 response to ACK so that the
server returns consistently.
Correct "token_key" id
issue #21 - Force close the config
Add auto shard.host to config.ini if $HOST defined.

AWS does not provide a useful os.hostname() value. This hack addresses
this by sort of taking advantage of a different hack I have installed.
in my .bashrc file I have which is basically:

HOST=`/usr/bin/wget -q -O-
http://169.254.169.254/latest/meta-data/public-hostname`

also useful, would be either the internal or external IP address.
Basically, any way we can connect to the machine that actually handles
this.
Add channelID to register reply
Issue #24 - handle empty JSON buffer as "ping"
Merge branch 'master' into register-channelid
Merge pull request #25 from nikhilm/register-channelid

Add channelID to register reply
Do not respond to ack with a ack messageType
Merge pull request #28 from nikhilm/no-ack

Do not respond to ack with a ack messageType
Fix proxy push
disable proxy for now
Merge branch 'master' of github.com:jrconlin/pushgo

Conflicts:
	src/mozilla.org/simplepush/worker.go