Added RustcEncodable RustcDecodable to all components
Added Entity for serialization and factory method. Work on #5 and #3.