Add flat docs badge to README

[ci skip]
Merge pull request #3203 from rrrene/patch-3

Add flat docs badge to README
Performance: memoize expanded path of Source::Path
Performance: pre-calculate expensive `prerelease?` values during resolve