Added new UI for viewing error messages. Tidied up some HTML/CSS/JavaScript. Fixes #4.