Bug 836580: Use the profile directory for the temporary test files.
Bug 836580: Add comments about why we're using the profile directory.
Merge pull request #756 from Mossop/bug836580_3

Bug 836580: Use the profile directory for the temporary test files. r=ochameau