markdown link rewrites; some permissions progress

Closes GH-159.