Pass the current resource to Redactor

This is necessary for dealing with placeholders in image/file browse paths, such as [[+context_key]].
Merge pull request #177 from Mark-H/patch-1

Pass the current resource to Redactor