Implement efficient plain text layouting.
Merge, test and integrate rendering branch.

Conflicts:
	util.py