Inital commit of trema-core