A stab at Plangang REST API backend using Groovy/Grails