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

Thanks for this,