coverity fixes;
move some cruft to archive;
move ui.memoryagent to test