Fix swap file .gitignore pattern.
Ignore more xcuserdata.
Add Records.swift.
Tests for generateGUID.