create rebar_resource behaviour and create git resource