Add initial record functionality.  Very basic, doesn't appear to follow 301s yet.
Fix tests.