Fix asynchonous error handling.
Lower client-side session URL timout.

Make the client-side timeout slightly less (10 seconds less) than the
server-side timout.
After this timeout the old session URL will be invalidated and a new one
will be requested.
Fix indent.
Set header only if we have data to post.
Dynamically assign concept results.
Fix indent.
Fix indent.