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

Add spm support