Fix test to work with optimize() signature

optimize() expects args parameter, which is an object
of {data, path}.
Added configuration option to ignore files

when the path passed to optimize() matches a regex
set at config.plugins.uglify.ignored, no optimization
is performed.