Improve NoteHistory API

* add possibility to tell whether or not the note text should be included
* add new API Url to get all known archived notes (even deleted ones)
* fix some tests