David Bateman, founder and board chair of Utah-based company Entrata and onetime prominent figure in state Republican politics, resigns after email diatribe