API: Show shared messages as repeated messages, improvements with nick names

Futher improvements for the API. 

* Now the nicknames are fetched from the known profile addresses when they aren't present.
* Shared messages are shown as repeated messages if they only consist of the shared part with no further comment.
* In text mode the content of a post is reduced (removed quotes and pictures of posted links) to make the text output more readable.