Refactoring of daemon/* code to support exec and related features

This PR should not affect any existing functionality.

@crosbymichael : As per your request, I have extracted out the refactoring part of #7409 into this PR.


No. ProcessConfig needs to be passed around independently.


On Fri, Aug 29, 2014 at 2:22 AM, Alexandr Morozov <notifications@github.com>
wrote:

> In daemon/container.go:
>
> >  		Config:             context,
> >  		Resources:          resources,
> >  		AllowedDevices:     allowedDevices,
> >  		AutoCreatedDevices: autoCreatedDevices,
> >  		CapAdd:             c.hostConfig.CapAdd,
> >  		CapDrop:            c.hostConfig.CapDrop,
> > +		ProcessConfig:      processConfig,
>
> Don't you want to embed this too?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/docker/docker/pull/7750/files#r16888738>.
>