Add -format to 'docker inspect'

This makes it a lot easier to script with docker instances as one can
ask for details about running instances more easily without having to
have additional JSON processing tools installed.

Note that I did minimal work in separating the current JSON output from the templated output.

dotcloud/docker#734

Closes #734