LILY-310: speedup historylist

- find emails and notes separate
- find emails by finding headers first
- make all emails in headers lowercase for fast search
- add index to header.name to speedup search
- fixed show more button