Get the Imperial Assault Campaign module for Vassal from http://www.vassalengine.org/wiki/Module:Star_Wars:_Imperial_Assault
The next total solar eclipse holiday in 2017 in the USA.
The owner of the ability decides. The target only performs the reroll. (You can only reroll a die you have rolled, that's why the ability is worded like that. The attacker cannot reroll defense dice and vice versa.)