Add clear and copy buttons to the log page.
Fix #356