[api] remove some unused functions
[webui] some test
[webui] working on random code issues rubymine complained about