PEP8 and other small changes
Forgot to remove these print lines

Used to debug the [url] bbcode. [url] only works with ‘real’ urls - not
with ‘localhost’.
Merge branch 'master' into permissions-improvements