restructure erlang code in fewer projects and build them with rebar
use ant to run the eunit tests
add rebar script (2.5.1) to core plugin