Respect ant srcdir

Make the ant build.xml actually respect the setting for for the `srcdir` property.

The property was being defined and set, however many of the tasks were not properly referencing it in their file pathspecs.

This also adds a few gitignores for netbeans and IDEA project files.