Started to clean up the web frontend and API.