begin support of json formatted output: start with 'ls' command

This patch enhances the 'ls' command to support emitting JSON as output.  We're using this for automation around the use of the s3cmd in scripts.