Scientists are getting closer than ever to capturing the contents of our dreams, a goal since at least the 1920s.