add support for bind mounting individual files in to containers

fixes #2671, add support for bind mounting individual files in to containers, rebases of #1757 #2301