[api] refactor BsRequestCollection further
[webui] remove unused code