Merge pull request #950 from getnikola/anchor-fix

Fix the “clicking on anchor links puts you too far” bug for headers.
add a DEBUG/site.debug variable

This replaces multiple os.getenv('NIKOLA_DEBUG') calls.

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
fix #978 and change the logging level for reST

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
add debug to FakeSite for reST testing

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Merge pull request #982 from getnikola/rest-logging

fix #978/reST logging