Added Ecoptimizer code.

This is a first mockup, no interaction yet. (TODO?)