Updated gitignore; cleaned up packages.

Added code to check for file existance on GET as well, just in case HEAD doesn't complete properly.