Add spm support
Merge pull request #283 from spmjs/master

Add spm support