restructure and modernize
include files from ejabberd-modules