Merge pull request #1 from troopjs/develop

Merge back
support for optimization
fix bug for optimization, url is empty not name
Merge pull request #13 from tristanguo/develop

Support for optimization. Closes troopjs/troopjs-requirejs#12