Ticket #204 - refactoring getFiles to only give metadata, fixing firefox whitespace bug