Finally fixed getTemplates problem

Use find event to get _ids of templates needed and getTemplates to get
their flat schema (cc. #12).

Updated ui script to work with the new template data.