Various fixes, trying to stabalize the web interface.