minor improvements

separated namespace.js from view.js
mock.cgi: added user-name and role