Add rebar and makefile.
Merge pull request #2 from branch csm-improvements