Added energy usage to recipe viewer

Also refactored code by adding a superclass for machine recipe handlers,
this reduces copypaste code amounts.
Merge pull request #15 from fappoh/master

Added energy usage to recipe viewer