Log thank events from diff view

Made additional ResourceLoader module to prevent all JavaScript
loading at top of page

* Make reusable thanks module
* refactor createThankLink to be more generic

Change-Id: I87e10e1283d8299f42fb675c839391e3f0142e4f
Merge "Log thank events from diff view"