Fixed a problem with name generation when Samples/Subjects had spaces in them or weird characters.
Really, I just added functionality to help resolve that issue
Also made a better url pattern match in urls.conf