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

Add spm support