Improve-Do-Not-Merge

The below are some improvements in the code 

1. Add Transactions, clickjacking middlewares
2. Bug: DVCSError on windows
3. Bug: wrong usage of os.path.normpath