Add mode to json
Don't call os.chmod if mode is default
Merge pull request #1 from silas/add-mode

Add mode to json