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

Add spm support