added support for sync writes through "/sync" option to "set" command
added test for /sync flag
Merge pull request #20 from anight/sync_writes

added support for sync writes through "/sync" option to "set" command