Added ant build file and run script.

Usage: ./run.sh
Basic authentication now working.

Still a lot of refactoring needed, but it is working.