Added build.xml for Ant.

Also updated .gitignore file so it doesn't include
*~ files created by editors.