Adding global invoice get/set and adding a standalone REST plugin