Added option to link availability of Refshare button in tinyMCE to whether Refshares filter is on/off
Tidy up commented out code
Only show Refshare button in tinyMCE if Refshare filter is on and user has permission within course