Mad science warning!

- Added a new approach: having revisions in a separate table (WIP)
- Added serialization of instances which revisions refer to (sort of a
'ghost' object)