Some changes to API + Thaumcraft  4 support.