Added ability to make layers static

Layers can now be flagged as only requiring a single redraw by using the
static property.
Added a configurable maximum delta time
Added layer / scene preparation