Personally, it seems to me that "in the beginning" refers to time and "at the beginning" refers to placement. Often they might be casually interchanged with a figurative allusion to the other meaning. For example: "at the beginning of the book" ,IMHO, emphasizes more the place [physically] (first pages/chapter etc') while "in the beginning of ... More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.