java_gen: Generate loxigen build/revision info into jar

Reviewer: trivial
CC: @vaterlaus @ronaldchl