Trailing slashdot in access rules, redmine #5775

Also a couple of minor cleanups from redmine #5708 and personal notes.