What is the connection between this Pasuk and the previous Parshah?
Rashbam: After the rebuke of 'Ha'azinu', Moshe blessed the people before ascending the mountain to die.
Seforno: Moshe was now fulfilling the purpose for which he initially ascended the mountain, when Hashem showed him the land - as recorded at the end of Ha'azinu. 1
Why did Moshe bless the people at this juncture?
Rashi (in his origiinal manuscript): It is the way of Tzadikim to bless when their time of death approaches
Why does the Torah refer to Moshe as "Ish ha'Elokim"?
Ramban: To teach us that his B'rachos would be fulfilled. 1
Da'as Zekenim, Hadar Zekenim, both citing R. Yosef Karo, and Rosh: This teaches that he blessed them according to Hashem's word.
Ramban: In fact, we also find the title "Ish ha'Elokim" used in connection with other prophets too - since their prophecy stems from a Divine source (See R. Chavel's footnotes. Perhaps that explains why Targum Onkelos and Targum Yonasan translate "Ish ha'Elokim" as 'Navi Hashem'). See Ramban.
Why does the Torah add the words "Lifnei Moso"?
Rashi #1 (in the original manuscript): Tzadikim tend to issue blessings shortly before their death (due to the principle 'If not now, when!' 1 - Rashi here).
Rashi #2 (in the original manuscript): When the Angel of death 2 came to take Moshe's Neshamah, Moshe bade him wait until after he had blessed the people.