An almost-additive ergodic theorem on amenable groups & Fiber-mixing codes and factors of Gibbs measures for subshifts of finite type