Adding custom webapp templates. Moving keystore_password lookup to library.