Implemented generic GUI synchronization for machines from power module.

Finished implementation of generator's functionality (eating fuel and producing energy).