Neuroscientists managed to change people's dreams - and the results shed light on their function ...