Some refactoring to use REST POST code.
More refactoring.
Simplified Nova code.