Wide-Field Millimagnitude Photometry with the HAT: A Tool for Extrasolar Planet Detection