Web-UI: Moving Library view and state to webui. In progress.