Bugfix: Misc errors in traits.
Feature: Add wire directory which contains serialization and deserialization code.