Fix up tag API endpoints, for #130.