Docker: add support for restart policy

This adds support for the restart_policy introduced in docker 1.2.0: https://blog.docker.com/2014/08/announcing-docker-1-2-0/

This requires the latest master of docker-py, so it might make sense to wait with merging this until a new stable version is released.

PS: This includes #8805