erlc: store info file in base_dir

* make it a universal info file
* store it as <base_dir>/.rebarinfo
Reuse rebar_utils:base_dir/1 in rebar_deps and rebar_xref
Introduce <base_dir>/.rebar/ and store erlc build info there
Add TODO regarding 'catch file:close(Fd)'