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>