core: added mesh and meshrendercomponent header, moved datatypes to separate file