Added a progressive backoff on scan interval.

If no beacons are found during a given scan, double the scan interval,
up to 5 min. If a beacon is found during a scan, the scan interval is
reset to 5 sec.