Add rebar and modify gitignore's rules