Enhance build system

rebar compiles with debug_info by default. Therefore:
* add rebar_release.config for release build
* add 'debug' Makefile target
Merge branch 'build-system' into next