Update 2-5-migration-guide.rst

Added description on how to assign a title now $title_for_layout is deprecated
Merge pull request #1287 from alex-m/patch-1

Update 2-5-migration-guide.rst