Update renderer to pre4.
Add flags for the new renderer.
New API, rename path to karma.