Tidy up on function repository location and JtwigContext/RenderContext

Merged JtwigContext together with RenderContext. Also moved function repository to the render configuration.