Changed how files are loaded in DefaultFactory

The default factory was calling java.util.File.toURL and when that is used it doesn't properly handle some special characters in the file path such as ##.  ## is now included in war file names to support Tomcat's Parallel Deployment feature.  I identified the issue while working on a project and just wanted to inform you of the issue.  There are two commits, involved in this, but really only one change.  I didn't like the first commit because I had custom java formatting enabled in my workspace and that caused the code to look like I changed a lot where in reality this is a very simple change.