Improved build process

Added Makefile
Added rebar
Improved rebar.config