Support building via rebar

Attach patches make it possible to use ejournald in rebar projects like other dependencies, i.e.

{deps, [{ejournald, ".*", {git, "https://github.com/agx/ejournald.git", {branch, "rebar"}}}
        ]}.

in rebar.config and then

rebar get-deps
rebar compile

Can this be applied?