Ticket #204 - refactoring getFiles

Not only did I refactor getFiles to match what we discussed, but I fiddled around with the firefox sanitization regexes in a way that I think that resolves the core issue.

The problem, it seems, was that you were only escaping *pairs* of whitespace, which would either leave a space at the start of line (which firefox would eat), or would flub up when there was an odd number of spaces by having two spaces together at the end of the sequence (which firefox would eat). The secret sauce, then, was to first escape "space-space-space" into "nbsp-space-nbsp", and then apply the normal "even" rule. I also added a rule that first escapes spaces after new lines to ensure all lines start with a nbsp, if any space.