allowed the tool to process multiple files specified on the command line
fixed json output - extra newlines and commas between objects
Added some test cases to document the metric's behaviour
modified json format to be the same as that produced by the batch
javascript parser
Merge pull request #1 from igilham/handle-multiple-files

Handle multiple files
Fixed bug incorrect JSON when analysing only 1 file.

The enclosing object notation "{" and "}" were missed out
when analysing only a single file, breaking the ecomp batch parser.

Now single file batches are modeled as a collection of one object.