html support and short field names

Allowing html markup in titles, notes and abstracts. Making possible the use of short field names in rest searches. Fix to highlighting of phrases containing characters that are deleted from non-phrase searches. Code cleanup.