Continuation of the `docker secret` storage feature

Closes https://github.com/dotcloud/docker/pull/6075

Starting on a new PR to accommodate alex being on holiday 
some other api handler guard this with `version.GreaterThanOrEqualTo`, maybe @vieux has some input why this is needed.