Add rebar to compile the erlang and C code
Update README to explain rebar build