start xmerl before cowboy

fix for issue #55. need to start xmerl before cowboy.