Server now produces proper JSON, which is read by front end. Also added catch for favicon requests.