[fix bug 941647] Implement Optimize.ly script on all  pages

**Not yet ready to merge**

Waiting on a bug to set our optimize.ly project code set on stage/prod bedrock environments (as opposed to including it in the repo, like we do for GA), so best wait until that is done first.

But this can be code reviewed at least. Our project code is: 246059135