Refactoring, clear separation between cql and thrift interfaces, adding ddl ns.