Fixing bug with c3Service.js preventing MainCtrl from populating config.legend.position.
Added simple test for embedOutput.js. Fixes #40.