Small refactorings to simplify how classes refer to object ids/keys/urlsafekeys.
Edit pages work for text attribute. Still working on other attributes.