Set permanent links to every captions and titles
Refactor creating permalinks on HTML writer
Surround fignum and caption with <span> tag
Fix flake8 violations
Merged in tk0miya/sphinx (pull request #304)

numfig feature improvement