Improved serialization and economy

Type fields for classes are now automatically generated.
Classes are now created directly from strings instead of using a switch statement.
Improved energy carrier logic, also moved to a separate class.
Improved harvester logic slightly.
Minor tweaks to energy carrier