Cleanup some pieces of ejabberd_c2s

I think ejabberd_c2s is a mess and that hurts really bad when applying big patch sets. This is a tiny step towards draining the swamp. No serious refactoring (yet?), mostly readability fixes.