The Psychological Origin and the Nature of Religion by Leuba, James H. (James Henry)
 is a Project Gutenberg book, now on Github.