Add support for .dockerignore

Implementation is a bit more elaborate than docker's implementation and
matches with the one proposed in https://github.com/dotcloud/docker/pull/6869

Signed-off-by: Bruno Renié <brutasse@gmail.com>