take care of type
removed useless calls to get_credentials
clean up in templates.rules:
* removed function set_template_object
* set_type_info now takes app, type, version, contributor, template and tinytemplate as options