more information when viewing a version

Now shows the previous version, the viewed version and the current
version.
Foreign Keys are displayed better when viewing a version
Added simple diff view for versions.
history view now is clearer when there is now previous version. Fixes #26
fixed handling when some fields are not populated.