Researchers believe they have found a way to calculate a person's risk of depression with a saliva test, a first if successful.