Refactor template code

Break out renderContentWrapper
Move language data construction to inside render languages

Change-Id: Ib31934be8db86a66070f77c27e9993163c89a3b5
Merge "Refactor template code"