Changing zfill(3) to zfill(4) so that we get '0700' instead of '700'

There is a possibility of this causing regressions, it will work correctly where both params are passed through it or where it's being compared with stat() output.  If there is code expecting a '700' style permission it will fail.  Realistically, '0700' is correct so the other code needs to be fixed.
Attempt to correct test failing due treating 0755 as octal but passing it as decimal.
Fix pylint errors and delete commented code
Fix usage of logging pylint errors
Merge branch '2014.1' into sl_2014.1
Fix unicode decode error in logging
Add gather_job_info config option
Merge branch 'fix_a_missing_returns_case' into sl_2014.1
Ensure that the out parameter is forwarded
Ensure that get_iter_returns updates minions

This was getting missed previously because events containing minions and
I assume syndic (I've not seen one of those events) don't include an id.
Made the logic here more like get_cli_event_returns seen as that works.
Merge branch 'fix_waiting_syndic_returns_in_salt_rc' into sl_2014.1