Added energy usage to recipe viewer

Also refactored code by adding a superclass for machine recipe handlers,
this reduces copypaste code amounts.