New PoC-6 JS API.
TODO.
Move namereg over to PoC-6 JS API.
Minor warning fix.