Fixes to POST code.
1. Wait for HTTP response before closing socket.  Beep twice if
HTTP status is not 200
2. Fixed bug in setting auth token.  Garbage characters were being
added to the token after the first POST.