API: Detecting the source name of the application

When posting via API, now the application name of the client is used as application name. For known clients (by now only Twidere) the application name is detected from the User Agent string.