renamed typecode to type_code; simplified define_view
simplified #define_view
simplified #define_view
more counterflogging.  simplified add_traits and event
minor #to_sql simplification
a little antiflogging cleanup
diff comment
minor whitespace fixes
Merge branch 'antiflog' into develop