Gravar-mail: Theory of Choice in Bandit, Information Sampling and Foraging Tasks