Improve REST documentation and some more TODOs.