Added 'new' templates. Introduced nested states, and changed hrefs to ui-srefs.