Oh that would be wonderful, I did notice it was based on damage and kills as a bigger chunk of my turrets's xp spread from the demolisher was channelled to whoever seemed to get the last bullet in and honestly; for demolishers I am not sure if any xp should go to the one who get the last shot in as it should be considered a "team effort" and no one member of that team should be given more just because of luck... well definitely for gun turrets! Not sure about railguns, but I'm sure you can cross that bridge if/when you get there.
Perhaps a "close call" xp boost, % of health lost over the last X ticks multiples xp by Y?, Shield damage should not count, maybe have a floor before this set in, start applying this after 40% health lost? I'm sure you'll find a good balance :)
Doesn't sound too complex for performance's sake but would need to see that in action to verify that!