UPGRADE-10. Thread that periodically checks-in with upgrade server.

This commit adds a thread that will periodically send a check-in message
to the upgrade server, receive a response, and write the JSON in the
response to a file on the local filesystem.