Updated makefile

* Makefile now uses a variable for rebar.
* Makefile now has a xref task.