Add rebar and makefile.
Update dependencies.
Resolve a series of dialyzer errors.
Merge pull request #43 from basho/csm-build-improvements

Build improvements.