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

Add spm support