better readability of events
This improves contrast between the background colour and the text of full day or longer events, by selecting white and black text colour depending on the background colour.
This should addresses #580 (closed), #344 (closed) and #190 (closed)