Add support for specifying resources for a container
ResourcesTest: Only run if Docker supports limits

Check if Docker supports the limits we are trying to set (memory, swap),
and only run if it does.

This requires docker-client 2.6.5, which includes Info.memoryLimit() and
Info.swapLimit() for checking whether the limits are supported.