Replace /res/ with /thread/

Part 1 of http://blog.4chan.org/post/82477681005/upcoming-namespace-changes
Remove src/ and thumb/ from image/thumbnail paths

Part 2 of http://blog.4chan.org/post/82477681005/upcoming-namespace-changes
Fixed filename
Merge branch 'namespacecrap'
Release 2.40.18