replace autotools with rebar.
add simple Makefile
support installation on the system

Like the old autotools installation this change allows installation in
the Erlang system so it can be used widely.
ERLANG_DIR can be set by the user.
Support OTP 17
Merge pull request #2 from cstar/rebar

Support OTP 17
Merge pull request #12 from benoitcnetwork/rebar

build percept2 with rebar