Views and view factory for building blocks.

Fixes #3