Fix bug where pre-commit script only work when committing from the git root
Make pre-commit script delete generated docs folder before regenerating
Merge branch 'master' into rpc

Conflicts:
	doc/code/bitcoin-nanopayment.html
	doc/code/jsbn-patched.html
	doc/code/test-payment.html