Completed SqlWriteTransaction, added some fixes

The following work is required to be done to complete the SQL Server
support.
1. Add support for scheduled tasks.
2. Add support for row expiration.
3. Remove Redis-related stuff from states.
4. Write integration tests for SQL Server storage.
5. Refactor resulting code, make names obvious and consistent.
6. Do excessive testing to detect mistakes and race conditions.