Added a backoff function to eliminate errors

Added a backoff function which tries to connect to Gmail several times
in a row for about 30 seconds. This should eliminate messages from Gmail
saying that cleanLabels function could not connect to Gmail.