Implemented render layers.

Which where called render stages earlier.

Closes 44