Added a Progressbar, rewrote the Layoutengine.

The Layout engine now doesn't use Arrays anymore.