Added logging to web application. Closed #2.