Get `rebar` from github if it is not installed

Now `make` can build and run tests even on the machine which doesn't have `rebar` installed
Add support for Travis-CI builds