Remove unused code related to RestWs.
Remove commented out code.
Merge pull request #5169 from openscholar/5055

Remove unused code related to RestWs