Fix incorrect process status code and add more logging for failures in async tasks.
Fix identity check failures for asynchronous tasks.

Passing identity before which is automatically logged out when the session context is destroyed (which may happen when the original request ends). Replaced with passing of the subject and principal directly.
Merge pull request #143 from zanata/async-fix

Async fix