File install: consider access mode as well

Access mode is now stored, and compared in incremental install.
Use file timestamp+size instead md5sum for rsync install.
Improve pep8 and pylint scores for changed modules

Fix #1357.