Moved here from Controller_Api_Forms::form(). Also added matching for_api() functions to Group and Attribute models.
Does this seem like a sane place for this? not sure on the 'for_api' naming but didn't have a better idea.