Merge pull request #18 from amitayd/fix-tests

Fix test to work with optimize() signature
Fix cloning.
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.