Full rewrite of the View layer.
Added first test for reimplemented View layer.