Improved REST API, enabled HTML output (WIP)