add spm support
Merge pull request #94 from spmjs/master

add spm support