testing, issue #1104: Make the test use static flags
Added version checker interface
inserted setUserAgent in each HTTP request
added APIVersion when call NewRegistry
Insert version checkers when call NewRegistry()
added client's kernel version
Removed an unnecessary error check.
Removed an unnecessary nil assignment
format in the user agent header should follow RFC 2616
reduce the number of string copy operations.
wip
Hack: use helper functions in tests for less copy-pasting
Merge branch 'master' into new_logs
store both logs in a same file, as JSON
Do not overwrite container volumes from config

Fixes #819 Use same persistent volume when a container is restarted
add legacy support
add debug and simplify docker logs
documentation.
Merge pull request #1207 from crosbymichael/819-use-persistent-volume

* Runtime: Do not overwrite container volumes from config
Make docs build without warnings or errors. Minor additional cleanup.