Updating TOC to 50100
Weekly build 5.1.0.40-Beta
Update changelog for 5.1.0.40-Beta
Merge tag '5.1.0.40-Beta'

Weekly build
Fix macro generator