Added duration to requests.

Duration in milliseconds added to processing result.
X-Duration header added to web requests.
Since most of rest commands are doing serialization and deserialization outside of processing engine,
timing doesn't cover full duration, but only most of it.