Initialization code simplified by adding CreateThreadWorldContext and DeleteThreadWorldContext functions.
Graphics code cleanup. CreateLifeGraphicsContext and DestroyLifeGraphicsContext functions.