Added component support and made meshes into componenets. Will work on tile system next.