Factor out common snippets from index.jsp.
Add registry with version.
Add stage and improve version/stage output in JSP.