Extension fixes. Template build.

Started designing main templates.