Here ya go: https://github.com/ChronAb/Broken_Empire_-_Refined_Combat_mod
Is far as what's in there, the meat of the mod is in simulation/components (spoiler-ed for ugly wall of text) :
If anyone wants to try to (re)use any of this in other mods or projects, then go for it. I'd appreciate it if you try to give me a heads up just to inflate my ego, but you don't need my permission.
Also if you have suggestions for how to fix any other problems I've identified drop me a comment (or a pull request) on GitHub. I don't always have the liberty to keep a watchful eye on these forums.
Edit: I added a copyright license affirming that this work is open source (and as close to public domain as I feel comfortable). Also, like I said I would, I've updated the armor system with some new parameters. I think its performing more like I intended now: very melee infantry favored.