fix for compilation issue. Added conversion routine for time spans/durations
added conversion routine for TimeSpan to TimeDuration
implementation of scan callbacks
merged in scan state stuff from 2.0.x branch
Renamed APDUOut to APDU now that name is available again
Added request/response classes that can be used to write headers to buffers