SPARK-1036. .gitignore is overly aggressive

Lines in .gitignore that do not have a leading slash apply to directories by that name anywhere in the tree. This causes some dependencies of PySpark and even some Scala packages to be ignored by git. Even /lib/ is no longer intended to be ignore.