Enhance build system

rebar compiles with debug_info by default. Therefore:
* add rebar_release.config for release build
* add 'debug' Makefile target
Return captured output on error
Merge pull request #9 from tuncer/sh-error

Return captured output on error
Merge pull request #8 from tuncer/build-system

Enhance build system