Convert from rebar to erlang.mk

This project will only compile if being included from another project using rebar.

This patch converts the current Makefile/rebar.config into it's erlang.mk equivalent.