add rebar support

add rebar script and config file, helper Makefile, srv_stub .app.src,
updated .gitignore