Add thread ID to rest API
Add thread ID to rest API

Using the thread ID the log entries in the privacyidea.log file
which refer to a certain event can be found more easily.

Closes #470

wheldom01/privacyidea,privacyidea/privacyidea,wheldom01/privacyidea,privacyidea/privacyidea,wheldom01/privacyidea,jh23453/privacyidea,jh23453/privacyidea,jh23453/privacyidea,jh23453/privacyidea,privacyidea/privacyidea,wheldom01/privacyidea,jh23453/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,wheldom01/privacyidea,privacyidea/privacyidea,jh23453/privacyidea,wheldom01/privacyidea