Rebarizes bert.erl

This lets you use bert.erl in other rebar-friendly applications, and also simplifies the build process.