Pass factories for subviews (closes #22)

We now pass factories which create subviews instead of subviews themselves. This
allows to:

  1. Configure subviews by views
  2. Propagate context to subviews