More files where we removed fileExt and files
Factor out encoding lib.
Simplify returning of encode states.

The current encoding files are the encoding states held by the encoder, not necessarily the files in the encode directory.
Update cli interface to encoder.
Swith underscore out with lodash.
Remove _encoder variable.
Remove intermediate event emitters.
Remove intermediate file in cli.js.
Merge pull request #22 from plediii/refactor-encode3

Factor out encode lib