Added error interface and implementation.
Added io interface and implementation.
Added trace interface and implementation.