Add the capability for using dockerignore files

Also minor bits of pep8 cleanup.