added typedef for cql_stream_id_t, moved lots of implementation details for the message classes to .cpp files