[webui][api] Refactor attributes, basic webui support