Added TemplatesApi unit tests. Created Links utility class.