Avoid document plugin problem on XHTML documents

jQuery will choke if the img tag isn't closed.
Ensuring the Permissions plugin consults options.userId() when updating permissions.
Merge pull request #271 from ctnitchie/master

Ensuring the Permissions plugin consults options.userId() when updating ...