To answer the question of how Red John came to know of Jane's 'happy memory', a lot of theorists have come out to say that the answer is to be found in the time Jane spent in a psychiatric ward. This is highly possible.
We found out in the flashback episode 5x18, that Kirkland had FBI work with CBI to keep track of Jane. Remember how before Alexa Schultz ended the call with Minelli, she revealed a piece of information about Jane's whereabouts after the murder of his wife and daughter: Jane was in 'an insane asylum'. That was of course to plant some doubts regarding Jane's mental health and give a strong push for Minnelli to keep an eye on Jane and update Schultz. How and who else could have told Schultz about that but Kirkland? If we take Red John out of the equation entirely, say Jane's family was murdered by some other killer, I cannot think of any possible reason why the FBI would be so interested in keeping tabs on Jane. However, Jane's family was murdered by Red John and so he became Red John's person of interest. Hence, how the FBI and the need to inform the FBI about Jane's psychiatric ward stay, came into the picture.
The audience were told of Jane's 'stint' in the psychiatric ward in 1x10, of which the time setting is a few years after he started to work with CBI. The setting of 5x18 is a few years before Jane started his CBI consultancy so chronologically no one in the CBI knew of this when Jane first appeared to them, and henceforth, no one Jane worked closely with (except Minnelli) knew of it until 1x10, by Jane's own admission.
Chronologically, that should be when the information about Jane's psychiatric ward stay was first revealed to the CBI. If Bertram was Red John, why would he need the information to be revealed to Minnelli in such a way? Him being Director could have easily issued the directive that Jane be watched.
A few other things I find interesting:
1. When Kirkland supposedly first met Jane in the CBI corridor, he said, “Sorry, Mr. Jane.” and to Lisbon when he asked about Jane when Lorelai escaped from prison, he referred to Jane as 'your Mr. Jane'. Remember how Red John addressed Jane as 'Mr. Jane' in that note pinned to the door? Subsequently as this strange relationship is formed between them over the years, Jane became 'Patrick' to him. Similarly, Kirkland began addressing Jane as 'Patrick' in subsequent interactions.
2. How impossible would it be for the Attic Invasion to have actually happened before Lorelai's murder? Not at all. It could be that chronologically, the invasion took place before Lorelai's murder but plot-wise, it seemed to be after her murder. 5x18 is proof enough that the writers can play with chronology as they see fit, to withhold or reveal important information. What we see is what seems to be but what it really is, we don't know until it is revealed to us.