Colebrook, N.H., lost access to some state-connected town services after a hacked email. Vital records and elections were later restored.