Cleaned up CoFHLib api.

Also added some TMechworks integration.