Write API file using built-in templates instead of freemarker (not available in IC)
Extract functions from API (WIP)