Result mode plus other cleanups

This is a new feature to write resutls directly to c* rather then reading them back to the client. In the mean time I fixed several other issues like consistency level was not being respected by handlers, magic strings. The usual :)