Modify build for Medigram xmpp usage

Add configure and install capability to make, this allows for configuring of
the inputs to erlang's release generation. The inputs are also used to generate
ejabberd.cfg and a script for installation.

BugzID: 34
Add printout for bad data errors