More refactoring to make rest add generic.
Generic version of push add.