Move types, public API to ectr.erl
v0.1.1