Build it with rebar and add lager as a dependency

Lager makes it usable only in applications which use lager for logging.