More work on the sugar portal

Also updated the API to 1.2.2.