Add JVM options for VisualVM profiling.

Also gitignore all the class files generated by the tool.
Use slim mode for osm2pgsql to cache to DB.

This reduces the amount of memory required for the OSM import.
Incorporate Eugene's changes to use arrays instead of lists
Merge pull request #449 from flibbertigibbet/feature/optimize-mem-usage

Feature/optimize memory usage