Using simple requirejs optimize function and adapt tests to it.

I'm pretty sure this is not the best solution but it does the job. It's working similar to `grunt-contrib-requirejs` so it makes easier to work with. It just cares about run the function `optimize` which will create the outputs defined using all require config provided.

Any comment/contribution/improve is more than welcome.