Implemented tile entity structure

Borrowed code from BuildCraft to support tile entities.  Thanks
Spacetoad.