Enhanced .gitignore.

Now ignoring IntelliJ IDEA configuration files and folders, as well as
hidden files and backups.
Minor cleanup of build.xml

Removed a task that is likely to be no longer needed and deleted code
that was commented out.