Cleaned up RESTful API and fixed web interface