pep8 fixes
Simplify a bit pagination code.
More pep8 fixes and refactor the check for old settings.
Clarify docs about the DIRECT_TEMPLATES _SAVE_AS and _URL settings.
Merge pull request #1220 from saimn/misc

Clarify docs about the DIRECT_TEMPLATES _SAVE_AS and _URL settings.