Fixes issue #1734752 by matglas86, Cottser: Basic Button display always uses HTTP to include the image (insecure content on HTTPS page).
Fixed issue #2164647 by matglas86: Test failed on clickback tracking.
Fixed public functions that needed to be static.
Merge branch '7.x-4.x' into issues/1524720-dont_load_on_every_page