Improved agenda view

* Switched to using winsaveview & winrestview instead of cursor hack
  since this is much better.
Fixed serializer for logbook