DATAREDIS-290 - Add support for SCAN command.

Introduced new static factory method scanOptions to ScanOptions to replace the two static factory method entry points count()/pattern().
Revised ScanCursor state management.