Convert aaaa_record to c++ class.
Convert nsec_record to C++ class. Fix some coding styles in record.