Support structured facts

Initial support for structured facts.
The layout in node detail view is not as nice as it should be yet. But
it works at least.