Groovy class for interacting with M-Files REST interface