Persistent commands history

Very annoying that history is lost after reloading page, therefore I think better way is store commands history in localStorage.