Rebar

Updated the rebar port to current master.
Mostly done from the work of archaelus (git://github.com/archaelus/exmpp.git).