Gravar-mail: Algorithms for the assessment and management of insomnia in primary care