Added HasTypeId trait

This commit defines the HasTypeId trait to support the use of Capn'Proto type IDs from Rust code.
See dwrensha/capnpc-rust#2