Generic lanterna view layout management.

[MOVED]     A generic lanterna view management framework extracted.