generate rebar app
add deps
add makefile
fix makefile