move templates into views directory; add form for generating secure URLs