Move ean handling to new object routines

Also used standard rtn instead of duplicated code in
Edifact
nade edi_wan_accounts template more readable